package com.dream.model.base;

import java.io.Serializable;

import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

import com.dream.model.app.AppUser;

/**
 * 
 * @author Evan
 * @date 2013-8-25
 * 
 */
@MappedSuperclass
public abstract class AppUserModelBase extends AppModelBase implements Serializable {
	private static final long serialVersionUID = 1L;

	@ManyToOne(targetEntity=AppUser.class,fetch=FetchType.LAZY)
	@JoinColumn(name="create_user",updatable = false, insertable = false)
	private AppUser createUserObj;
	
	@ManyToOne(targetEntity=AppUser.class,fetch=FetchType.LAZY)
	@JoinColumn(name="update_user",updatable = false, insertable = false)
	private AppUser updateUserObj;

	public AppUser getCreateUserObj() {
		return createUserObj;
	}

	public void setCreateUserObj(AppUser createUserObj) {
		this.createUserObj = createUserObj;
	}

	public AppUser getUpdateUserObj() {
		return updateUserObj;
	}

	public void setUpdateUserObj(AppUser updateUserObj) {
		this.updateUserObj = updateUserObj;
	}
	
	

}
